package com.cloudlinkscm.loms.services.base.notify.assemblers;

import com.cloudlinkscm.loms.framework.core.pojo.Assembler;
import com.cloudlinkscm.loms.framework.util.BeanUtils;
import com.cloudlinkscm.loms.services.base.notify.dto.InsertAccountDto;
import com.cloudlinkscm.loms.services.base.notify.model.entity.TenantEmailAccount;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

/**
 * @author : tac
 * @date : 2017/6/15
 */

public class InsertAccountModelAssembler implements Assembler<InsertAccountDto, TenantEmailAccount> {
    @Override
    public InsertAccountDto toDto(TenantEmailAccount emailAccount) {
        throw new NotImplementedException();
    }

    @Override
    public TenantEmailAccount toBo(InsertAccountDto dto) {
        TenantEmailAccount bo = new TenantEmailAccount();
        BeanUtils.copyProperties(dto,bo);
        return bo;
    }
}
